package com.zhang.learnnacos.api.app2;

import com.zhang.learnnacos.api.app2.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "app2")
public interface IUserInterFace {

//    @PostMapping(value = "/user/add",consumes = "application/x-www-form-urlencoded")
    @PostMapping(value = "/user/add")
    int addUser(@RequestBody UserDto user);
}
